package com.szq.lottery.domain.award.service.goods;

import com.szq.lottery.domain.award.repository.IOrderRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Resource;

/**
 * @author 吾空白
 * 配送货物基础共用类
 */
public class DistributionBase {

    protected Logger logger = LoggerFactory.getLogger(DistributionBase.class);

    @Resource
    private IOrderRepository orderRepository;

    protected void updateUserAwardState(String uId, Long orderId, String awardId, Integer grantState){
        //TODO 后期添加更新分库分表中，用户个人的抽奖记录表中奖品发奖状态
        orderRepository.updateUserAwardState(uId, orderId, awardId, grantState);
        logger.info("TODO 后期添加更新分库分表中，用户个人的抽奖记录表中奖品发奖状态 uId:{}",uId);
    }
}
